package com.ly.wxstore.entity;

import java.util.Date;

import javax.persistence.Transient;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;


public class UserInfo {

	public UserInfo() {
	}
	
	private Long id; //
	private String uid; //
	private String name; //
	private String phone; //
	private String introduction; //
	private String owner; //
	private String liyou; //
	private String jianyi; //
	private String paycity; //
	private Date createDate; //
	private Date createUser; //
	private String mainImageUrl; //
	private String yinxiang; //
	private String qiwang; //
	private String yiyuan; //
	private Long firstTickets; //
	private Long secondTickets; //
	private Long level; //1:初赛、2:决赛
	private String prize; //奖品
	private String buy; //1:是否买房
	
	
    public String getPrize() {
		return prize;
	}

	public void setPrize(String prize) {
		this.prize = prize;
	}

	public String getBuy() {
		return buy;
	}

	public void setBuy(String buy) {
		this.buy = buy;
	}

	/**
     *
     **/
	public Long getId(){
		return id;
	}
	
	/**
	 *
	 **/
	public void setId(Long id){
		this.id=id;
	}
    /**
     *
     **/
	public String getUid(){
		return uid;
	}
	
	/**
	 *
	 **/
	public void setUid(String uid){
		this.uid=uid;
	}
    /**
     *
     **/
	public String getName(){
		return name;
	}
	
	/**
	 *
	 **/
	public void setName(String name){
		this.name=name;
	}
    /**
     *
     **/
	public String getPhone(){
		return phone;
	}
	
	/**
	 *
	 **/
	public void setPhone(String phone){
		this.phone=phone;
	}
    /**
     *
     **/
	public String getIntroduction(){
		return introduction;
	}
	
	/**
	 *
	 **/
	public void setIntroduction(String introduction){
		this.introduction=introduction;
	}
    /**
     *
     **/
	public String getOwner(){
		if(StringUtils.isNotBlank(this.getLiyou())){
			this.owner = "是";
		}
		if(StringUtils.isNotBlank(this.getYinxiang())){
			this.owner = "否";
		}
		return owner;
	}
	
	/**
	 *
	 **/
	public void setOwner(String owner){
		this.owner=owner;
	}
    /**
     *
     **/
	public String getLiyou(){
		return liyou;
	}
	
	/**
	 *
	 **/
	public void setLiyou(String liyou){
		this.liyou=liyou;
	}
    /**
     *
     **/
	public String getJianyi(){
		return jianyi;
	}
	
	/**
	 *
	 **/
	public void setJianyi(String jianyi){
		this.jianyi=jianyi;
	}
    /**
     *
     **/
	public String getPaycity(){
		return paycity;
	}
	
	/**
	 *
	 **/
	public void setPaycity(String paycity){
		this.paycity=paycity;
	}
    /**
     *
     **/
	public Date getCreateDate(){
		return createDate;
	}
	
	/**
	 *
	 **/
	public void setCreateDate(Date createDate){
		this.createDate=createDate;
	}
    /**
     *
     **/
	public Date getCreateUser(){
		return createUser;
	}
	
	/**
	 *
	 **/
	public void setCreateUser(Date createUser){
		this.createUser=createUser;
	}
    /**
     *
     **/
	public String getMainImageUrl(){
		return mainImageUrl;
	}
	
	/**
	 *
	 **/
	public void setMainImageUrl(String mainImageUrl){
		this.mainImageUrl=mainImageUrl;
	}
    /**
     *
     **/
	public String getYinxiang(){
		return yinxiang;
	}
	
	/**
	 *
	 **/
	public void setYinxiang(String yinxiang){
		this.yinxiang=yinxiang;
	}
    /**
     *
     **/
	public String getQiwang(){
		return qiwang;
	}
	
	/**
	 *
	 **/
	public void setQiwang(String qiwang){
		this.qiwang=qiwang;
	}
    /**
     *
     **/
	public String getYiyuan(){
		return yiyuan;
	}
	
	/**
	 *
	 **/
	public void setYiyuan(String yiyuan){
		this.yiyuan=yiyuan;
	}
    /**
     *
     **/
	public Long getFirstTickets(){
		return firstTickets;
	}
	
	/**
	 *
	 **/
	public void setFirstTickets(Long firstTickets){
		this.firstTickets=firstTickets;
	}
    /**
     *
     **/
	public Long getSecondTickets(){
		return secondTickets;
	}
	
	/**
	 *
	 **/
	public void setSecondTickets(Long secondTickets){
		this.secondTickets=secondTickets;
	}
    /**
     *1:初赛、2:决赛
     **/
	public Long getLevel(){
		return level;
	}
	
	/**
	 *1:初赛、2:决赛
	 **/
	public void setLevel(Long level){
		this.level=level;
	}
   
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	//-----------------------------------------
	@Transient
	private String search;

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}
}
	